package lab03.test06;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;

public class Test {
    public static void main(String[] args) throws IOException {

        String path = "D:\\words.txt";
        RandomAccessFile randomAccessFile = new RandomAccessFile(path, "r");
        String line = null;
        while ((line = randomAccessFile.readLine()) != null) {
            System.out.println(line);
        }
    }


}
